﻿using System;

namespace DiamondTrolls
{
    class DiamondTrolls
    {
        static void Main()
        {
            int n = int.Parse(Console.ReadLine());

            int width = n * 2 + 1;
            int height = (6 + ((n - 3) / 2) * 3);

            for (int i = 0; i < height; i++)
            {
                for (int j = 0; j < width; j++)
                {
                    Console.Write('*');
                }
            }

            //Console.Write(new string('.', (n + 1) / 2));
            //Console.Write(new string('*', n));
            //Console.WriteLine(new string('.', (n + 1) / 2));

        }
    }
}
